<?php
/**
 * 文章服务 - RPC
 * 
 * @author karl <karl.tang@aiyuangong.com>
 */
namespace app\index\rpc;

class Article extends \app\common\rpc\Rpc
{
    //获取包含type_id  in  (1,2,3,)条件的文章记录
    public function article_type_list($type){
        $result = \think\Db::name('article')->where(['status'=>1,'isdelete'=>0])->where('type_id','IN',$type)
            ->select();
        return $result;
    }
}
